/**
 * 
 */
package masterlink.futures.form;

import java.io.Serializable;

/**
 * @author tonyyang
 *
 */
public class GroupForm implements Serializable{

	private static final long serialVersionUID = 3540065656531556023L;
	private Long id;
	private String name;
	private String broker;
	private Long seq;
	private String remark;
	private String dealer;
	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the broker
	 */
	public String getBroker() {
		return broker;
	}
	/**
	 * @param broker the broker to set
	 */
	public void setBroker(String broker) {
		this.broker = broker;
	}
	/**
	 * @return the seq
	 */
	public Long getSeq() {
		return seq;
	}
	/**
	 * @param seq the seq to set
	 */
	public void setSeq(Long seq) {
		this.seq = seq;
	}
	/**
	 * @return the remark
	 */
	public String getRemark() {
		return remark;
	}
	/**
	 * @param remark the remark to set
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}
	/**
	 * @return the deal
	 */
	public String getDealer() {
		return dealer;
	}
	/**
	 * @param deal the deal to set
	 */
	public void setDealer(String dealer) {
		this.dealer = dealer;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("GroupForm [id=");
		builder.append(id);
		builder.append(", name=");
		builder.append(name);
		builder.append(", broker=");
		builder.append(broker);
		builder.append(", seq=");
		builder.append(seq);
		builder.append(", remark=");
		builder.append(remark);
		builder.append(", dealer=");
		builder.append(dealer);
		builder.append("]");
		return builder.toString();
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		GroupForm other = (GroupForm) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}

}
